package pl.edu.agh.neurony.logic.activationFunctions;

public class ThresholdFunc implements ActivationFunc {

	private double a = 0;

	@Override
	public double run(double input) {
		if (input < a)
			return 0;
		else 
			return 1;
	}
	
	@Override
	public double derivative(double input) {
		return 0;
	}

	@Override
	public String getName() {
		return "threshold";
	}

	@Override
	public String toString() {
		return getName();
	}

}
